#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main(){
	chdir("/root/lesson2");
	FILE *fp=fopen("log.txt","w");
	(void)fp;//ingor warning
	fclose(fp);
	while(1)
	{
	printf("i am a process,pid:%d\n",getpid());
	sleep(1);
	}	
	return 0;
}
